	.file	"file_operation.c"
	.text
	.section	.rodata
.LC0:
	.string	"open file fail!"
.LC1:
	.string	"stat"
.LC2:
	.string	"  %d"
.LC3:
	.string	"\t%ld"
.LC4:
	.string	"\t%.12s "
.LC5:
	.string	"   %s\n"
	.text
	.globl	file_operation
	.type	file_operation, @function
file_operation:
.LFB5:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$304, %rsp
	movq	%rdi, -296(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	-296(%rbp), %rax
	addq	$8, %rax
	movq	(%rax), %rax
	movq	%rax, %rdi
	call	opendir@PLT
	movq	%rax, -272(%rbp)
	cmpq	$0, -272(%rbp)
	jne	.L3
	leaq	.LC0(%rip), %rdi
	call	perror@PLT
	movl	$0, %edi
	call	exit@PLT
.L5:
	movq	-296(%rbp), %rax
	addq	$8, %rax
	movq	(%rax), %rdx
	leaq	-112(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcpy@PLT
	movq	-264(%rbp), %rax
	leaq	19(%rax), %rdx
	leaq	-112(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcat@PLT
	leaq	-256(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	stat@PLT
	movl	%eax, -276(%rbp)
	cmpl	$-1, -276(%rbp)
	jne	.L4
	leaq	.LC1(%rip), %rdi
	call	perror@PLT
	movl	$0, %edi
	call	exit@PLT
.L4:
	leaq	-256(%rbp), %rax
	movq	%rax, %rdi
	call	file_mode@PLT
	movq	-240(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-224(%rbp), %eax
	movl	%eax, %edx
	movl	-228(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	file_gid_uid@PLT
	movq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
	leaq	-256(%rbp), %rax
	addq	$88, %rax
	movq	%rax, %rdi
	call	ctime@PLT
	addq	$4, %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	-264(%rbp), %rax
	addq	$19, %rax
	movq	%rax, %rsi
	leaq	.LC5(%rip), %rdi
	movl	$0, %eax
	call	printf@PLT
.L3:
	movq	-272(%rbp), %rax
	movq	%rax, %rdi
	call	readdir@PLT
	movq	%rax, -264(%rbp)
	cmpq	$0, -264(%rbp)
	jne	.L5
	movq	-272(%rbp), %rax
	movq	%rax, %rdi
	call	closedir@PLT
	nop
	movq	-8(%rbp), %rax
	xorq	%fs:40, %rax
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	file_operation, .-file_operation
	.ident	"GCC: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0"
	.section	.note.GNU-stack,"",@progbits
